import request from '@/utils/request'

// 查询给予学生退学申请列表
export function listDisqualification(query) {
  return request({
    url: '/routine/disqualification/list',
    method: 'get',
    params: query
  })
}

// 查询给予学生退学申请详细
export function getDisqualification(disqualificationId) {
  return request({
    url: '/routine/disqualification/' + disqualificationId,
    method: 'get'
  })
}

// 根据流程 id查询数据
export function getRtStuDisqualificationByProcInsId(procInsId) {
  return request({
    url: '/routine/disqualification/getRtStuDisqualificationByProcInsId/' + procInsId,
    method: 'get'
  })
}
// 新增给予学生退学申请
export function addDisqualification(data) {
  return request({
    url: '/routine/disqualification/add',
    method: 'post',
    data: data
  })
}

// 新增给予学生退学申请
export function save(data) {
  return request({
    url: '/routine/disqualification/save',
    method: 'post',
    data: data
  })
}

// 修改给予学生退学申请
export function updateDisqualification(data) {
  return request({
    url: '/routine/disqualification/update',
    method: 'post',
    data: data
  })
}

// 删除给予学生退学申请
export function delDisqualification(disqualificationId) {
  return request({
    url: '/routine/disqualification/' + disqualificationId,
    method: 'post'
  })
}
